var 加载快速查询 = function () {
    var toJSON = function (d) {
        var m = (d.getMonth() + 1)
        var date = d.getDate()
        return d.getFullYear() + "-" + (m <= 9 ? "0" : "") + m + "-" + (date <= 9 ? "0" : "") + date //+ " " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds()
    }

    var sdate = new Date('2016/03')
    var edate = new Date()
    var cdate = sdate;
    do {
        var sdatestr = toJSON(cdate)
        var ccdate = new Date(cdate.getTime())
        if (ccdate.getMonth() == 11) {
            ccdate = new Date(ccdate.getTime() + 31 * 24 * 3600 * 1000 - 1)
        }
        else {
            ccdate.setMonth(ccdate.getMonth() + 1)
            ccdate = new Date(ccdate.getTime() - 1)
        }
        var edatestr = toJSON(ccdate)
        document.write('&nbsp;&nbsp; <a href="javascript:void(0)" sdate=\'' + sdatestr + '\' edate=\'' + edatestr + '\'>' + (cdate.getMonth() + 1) + '月</a>')
        if (cdate.getMonth() == 11) {
            cdate = new Date(cdate.getTime() + 31 * 24 * 3600 * 1000)
        }
        else {
            cdate.setMonth(cdate.getMonth() + 1)
        }
    } while (cdate.getTime() <= edate.getTime())
}
加载快速查询()